package com.java.exer1;

public class BankTest_1_1 {
    public static void main(String[] args) {
        BankTest_1 bankTest1 = new BankTest_1();
        // Customer1 p1 =new Customer1("小明","小李");
        // Account p2 =new Account(100,2000,0.012);
        bankTest1.addCustomer1("小明", "小李");
        bankTest1.addCustomer1("陈宇璐", "小花");
        bankTest1.addCustomer1("李鹏", "jack");
        bankTest1.addCustomer1("袁经浩", "Jack");
        bankTest1.getCustomer1(0).setAccount1(new AccountTest_2(8777));
        bankTest1.getCustomer1(0).getAccount1().withdraw(500);
        bankTest1.getCustomer1(1).setAccount1(new AccountTest_2(9000));
        bankTest1.getCustomer1(2).setAccount1(new AccountTest_2(200000000));
        bankTest1.getCustomer1(3).setAccount1(new AccountTest_2(8000099));
        double balance1 = bankTest1.getCustomer1(2).getAccount1().getBalance();
        double balance2 = bankTest1.getCustomer1(3).getAccount1().getBalance();
        bankTest1.getCustomer1(1).getAccount1().deposit(20000);
        double balance = bankTest1.getCustomer1(1).getAccount1().getBalance();
        System.out.println("这是" + bankTest1.getCustomer1(3).getFirstName() + "账户余额为:" + balance2);
        int a = bankTest1.getNumberOfCustomer();
        System.out.println("一共有" + a + "个客户");
        bankTest1.getCustomer1(3).getAccount1().withdraw(29999);
    }
}
